<h1>分类列表</h1>

<br />
<div id="content_inner">
  
<% @categories.in_groups_of(4,false) do |cat| %>
    <div class="show_each_row">
      <% for c in cat %>
        <div class="show_each" style="position: relative;">
          <div class="show_each_logo">
            <%= image_tag "/images/products/#{c.logo}" %>
          </div>
          <div class="show_each_info">
            <h4 style="display:block;margin-top:5px;"> <%= c.name %> </h4>
            <h4><img src="/images/products/publish.gif"/><%= link_to '修改', edit_category_path(c) %></h4>
            <h4><%#= link_to 'Destroy', category, :confirm => 'Are you sure?', :method => :delete %></h4>
          </div>
        </div>
      <% end %>
    </div>
  <% end %>
  
  <p style="clear:both;"/>
 	<%= link_to '返回', products_path %>
  <%= link_to '添加类别', new_category_path %>
  
  <table>
    <%#= render :partial => @products %>
  </table>
</div>

